Skip to content

Fix CLI bugs: conditional strptime and status_code() call#52

Merged
dannywillems merged 1 commit intomainfrom
fix/35-cli-bugs
Feb 8, 2026
Merged

Fix CLI bugs: conditional strptime and status_code() call#52
dannywillems merged 1 commit intomainfrom
fix/35-cli-bugs

Conversation

@dannywillems
Copy link
Contributor

Summary

  • Move datetime.strptime() inside the if before/after is not None blocks to prevent TypeError when params are omitted
  • Fix response.status_code to response.status_code() — it's a method, not an attribute

Test plan

  • All 70 tests pass
  • CLI can be called without --before/--after without crashing

Closes #35

- Move datetime.strptime() calls inside the None-check blocks
  to prevent TypeError when before/after are not provided
- Fix response.status_code to response.status_code() (method
  call, not attribute access)

Closes #35
@dannywillems dannywillems merged commit 1b61994 into main Feb 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix CLI bugs: unconditional strptime and wrong status_code reference

1 participant